<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	<%@page import="jxl.*" %>
<%@taglib prefix="s"  uri="/struts-tags"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="css/common.css" type="text/css" />
<script type="text/javascript" charset="utf-8" src="ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="ueditor/ueditor.all.js"></script>
<script type="text/javascript" src="ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">
window.UEDITOR_HOME_URL = "ueditor/";
</script>
<title></title>
</head>
<body>
	<div id="man_zone">
	<table class="dataintable">
		<%
		jxl.Workbook workbook = (jxl.Workbook)session.getAttribute("workbook");
		Sheet[] sheet = workbook.getSheets();
		for (int i = 0; i < sheet.length; i++) {
			Sheet rs = workbook.getSheet(i);
			System.out.println(sheet.length);
			System.out.println(" rs.getRows():" +  rs.getRows());
			for (int j = 0; j < rs.getRows(); j++) {//行
			
				Cell[] cells = rs.getRow(j);
				out.print("<tr colspan="+ cells.length +">");
				System.out.println(cells.length);
				//System.out.println(cells[0].);
				for (int k = 0; k < cells.length; k++){//列
				//	sb.append(cells[k].getContents());
					out.print("<td>");
					if(cells[k].getContents().trim() == null || cells[k].getContents().trim().equals("")){
						System.out.print(cells[k].getContents() + "                ");
					}else{
						out.print(cells[k].getContents() + "  ");
						System.out.print(cells[k].getContents() + "  ");
					}
					out.print("</td>");
				}
				out.print("</tr>");
			}
		}
		%>
		</table>
			<br/><br/><br/>
	</div>
</body>
</html>